#pragma once

#include "XgW32Processes.h"
#include "XgW32Module.h"
#include <map>
#include <string>

class XgModulesCollector
{
public:
	typedef std::map<TSTRING, XgW32Module> XgW32ModulesMap;
	typedef XgW32ModulesMap::iterator Iterator;
	
public:
	XgModulesCollector(XgW32Processes processes);
	~XgModulesCollector();

public:
	bool collect(XgW32Processes processes);

public:
	Iterator begin()
	{
		return _map.begin();
	}

	Iterator end()
	{
		return _map.end();
	}

private:
	XgW32ModulesMap _map;
};
